package domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="fan_user")
public class FanUsers {
	private int idDel;
	private int id;
	private User fanUser; 
	private User fanedUser;
	
	public int getIdDel() {
		return idDel;
	}
	public void setIdDel(int idDel) {
		this.idDel = idDel;
	}
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	 @ManyToOne
	 @JoinColumn(name="fan_id")
	public User getFanUser() {
		return fanUser;
	}
	public void setFanUser(User fanUser) {
		this.fanUser = fanUser;
	}
	 @ManyToOne
	 @JoinColumn(name="faned_id")
	public User getFanedUser() {
		return fanedUser;
	}
	public void setFanedUser(User fanedUser) {
		this.fanedUser = fanedUser;
	} 
	

	
	
	
}
